/**
  ************************************* Copyright ******************************
  * FileName   : main.h
  * Version    : v1.0
  * Author     : yychao
  * Date       : 2023-11-27
  * Description:
  * Function List:
  	1. ....
  	   <version>:
  <modify staff>:
  		  <data>:
   <description>:
  	2. ...
  ******************************************************************************
 */

#ifndef __MAIN_H_
#define __MAIN_H_
#include "n32l40x.h"

typedef enum
{
    HAL_OK       = 0x00U,
    HAL_ERROR    = 0x01U,
    HAL_BUSY     = 0x02U,
    HAL_TIMEOUT  = 0x03U
} HAL_StatusTypeDef;

typedef enum
{
    GPIO_PIN_RESET = 0,
    GPIO_PIN_SET
} GPIO_PinState;


#define setbit(x,y)			(x |= (1<<y))
#define clrbit(x,y)  		(x &= (~(1<<y)))
#define reversebit(x,y)		(x ^= (1<<y))
#define getbit(x,y)			((x>>y)&1)





#endif


